package cn.i96688.scanclient.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;

import cn.i96688.scanclient.bean.PayLog;

public class Message {
	private static Properties prop=new Properties();
	static{
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(Message.class.getResourceAsStream("/messages.properties"), "UTF-8")); 
			prop.load(br);
			br.close();
		} catch (IOException e) {
			PayLog.getInstance().addLogs(e);
		}
	}
	public static String getMsg(String name){
		return prop.getProperty(name, "");
	}
}
